﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="ModuleDefinition.ascx.cs"
    Inherits="Portal.Administrator.Modules.ModuleDefinition" %>
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="Framework.Library" Namespace="Framework.Library.Controls"
    TagPrefix="cc3" %>
<asp:UpdatePanel ID="upanelModuleDefinition" runat="server" UpdateMode="Conditional"
    RenderMode="Inline">
    <ContentTemplate>
        <table border="0" cellpadding="0" cellspacing="1" class="content" width="100%">
            <tr>
                <td class="postheader" width="30%" align="left" valign="top">
                    <table border="0" cellpadding="0" cellspacing="1" class="content" style="width: 100%">
                        <tr>
                            <td class="post" align="left">
                                <asp:TreeView ID="tvwModules" runat="server"  ExpandImageUrl="/Administrator/Resource/Images/TreeView/col.gif" CollapseImageUrl="/Administrator/Resource/Images/TreeView/exp.gif" NodeStyle-CssClass="TreeNode" NodeIndent="15" NoExpandImageUrl="/Administrator/Resource/Images/TreeView/noexp.gif"
                                HoverNodeStyle-CssClass="HoverTreeNode" SelectedNodeStyle-CssClass="SelectedTreeNode" OnSelectedNodeChanged="tvwModules_SelectedNodeChanged" >                   
                                </asp:TreeView>
                            </td>
                        </tr>
                    </table>
                </td>
                <td class="post" width="70%" align="left" valign="top">
                    <table border="0" cellpadding="0" cellspacing="1" style="width: 100%" class="content">
                        <tr>
                            <td class="header1" colspan="2" align="left">
                                <asp:Label ID="lblCommandName" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="header2" height="18">
                                <asp:Label ID="lblUpdateStatus" runat="server" Font-Bold="True" ForeColor="Blue"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="postheader" width="25%" align="left">
                                <asp:Label ID="lblModuleID" runat="server" Text="Module ID"></asp:Label></td>
                            <td class="post" width="75%" align="left">
                                <asp:TextBox ID="txtID" runat="server" Enabled="False" Width="79px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td class="postheader" width="25%" align="left">
                                <asp:Label ID="lblModuleName" runat="server" Text="Tên module"></asp:Label></td>
                            <td class="post" width="75%" align="left">
                                <asp:TextBox ID="txtModuleName" runat="server" Width="285px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtModuleName" ErrorMessage="Chưa nhập tên module"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td class="postheader" width="25%" align="left">
                                <asp:Label ID="lblTitle" runat="server" Text="Title"></asp:Label></td>
                            <td class="post" width="75%" align="left">
                                <asp:TextBox ID="txtModuleTitle" runat="server" Width="338px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td class="postheader" width="25%" align="left">
                                <asp:Label ID="lblDesc" runat="server" Text="Mô tả"></asp:Label></td>
                            <td class="post" width="75%" align="left">
                                <asp:TextBox ID="txtModuleDescription" runat="server" Height="62px" TextMode="MultiLine" Width="285px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td class="postheader" width="25%" align="left">
                                <asp:Label ID="lblDirectory" runat="server" Text="Thư mục"></asp:Label></td>
                            <td class="post" width="75%" align="left">
                                <asp:TextBox ID="txtModuleFolder" runat="server" Width="338px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtModuleFolder" ErrorMessage="Chưa nhập đường dẫn"></asp:RequiredFieldValidator></td>
                        </tr>    
                        <tr>
                            <td class="postfooter" colspan="2" valign="middle" align="center">
                                <Button:Create ID="btnCreate" runat="server" CssClass="pbutton" Text="Tạo mới" Width="77px" OnClick="btnCreate_Click" />&nbsp;
                                <Button:Update ID="btnUpdate" runat="server" CssClass="pbutton" Text="Cập nhật" OnClick="btnUpdate_Click" Width="77px" />&nbsp;
                                <Button:Delete ID="btnDelete" runat="server" CssClass="pbutton" Text="Xóa" Width="77px" OnClick="btnDelete_Click" />&nbsp;
                                <asp:Button ID="btnCancel" runat="server" CssClass="pbutton" OnClick="btnCancel_Click" Text="Hủy" Width="77px" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>